package cn.stylefeng.guns.modular.business.frequency.orderextrafee.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单其他额外费用表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_order_extra_fee")
public class OrderExtraFee extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * transport_id
     */
    @TableField("transport_id")
    private Long transportId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 费用类型1.提短 2.放空
     */
    @TableField("type")
    private Integer type;

    /**
     * 金额
     */
    @TableField("fee")
    private BigDecimal fee;

    /**
     * 已付
     */
    @TableField("has_settlement")
    private BigDecimal hasSettlement;

    /**
     * 未付付
     */
    @TableField("un_settlement")
    private BigDecimal unSettlement;

    /**
     * 结算人
     */
    @TableField("settlement_name")
    private String settlementName;

    /**
     * 结算人电话
     */
    @TableField("settlement_phone")
    private String settlementPhone;

    /**
     * 结算人ID
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 添加场景 0.默认 1.提车 2.送车 3.签收 4.交付 5.财务
     */
    @TableField("add_scene")
    private Integer addScene;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
